package com.yyxh.laiojbackend.model.dto.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 编辑请求
 *

 */
@ApiModel(value = "更新编辑表单")
@Data
public class QuestionEditRequest implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "题目ID",required = true,dataType = "Long",example = "1")
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "题目标题",required = false,dataType = "String",example = "A+C")
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "题目内容",required = false,dataType = "String",example = "A+C的答案是什么")
    private String content;

    /**
     * 标签列表（json 数组）
     */
    @ApiModelProperty(value = "标签列表",required = false,dataType = "String",example = "[\"栈\",\"简单\"]")
    private List<String> tags;

    /**
     * 题目答案
     */
    @ApiModelProperty(value = "题目答案",required = false,dataType = "String",example = "代码（省略）")
    private String answer;

    /**
     * 判题用例（json数组）
     */
    @ApiModelProperty(value = "判题用例",required = false,dataType = "List<JudgeCase>")
    private List<JudgeCase> judgeCase;

    /**
     * 判题配置（json数组）
     */
    @ApiModelProperty(value = "判题配置",required = false,dataType = "JudgeConfig")
    private JudgeConfig judgeConfig;

    private static final long serialVersionUID = 1L;
}